<script setup lang="ts">
import { ref, reactive, computed, onMounted,inject, type Ref } from 'vue';
import pi from './pi.vue'

const props = withDefaults(defineProps<{
  msg?: string
}>(),{
  msg: 'hello'
})

let pmsg = inject<Ref<string>>('pmsg')
let updata = inject('pmsg2',() => {})

</script>

<template>
  <div>
    <span>子组件~~~</span>
  </div>
  <slot name="header">
    我是头部123
  </slot>
  <slot name="content">
    

  

    我是内容
  </slot>
  <slot name="footer">

    我是底部
  </slot>



</template>

<style scoped>
  
</style>